<?php
namespace app\api\controller\v1;
use think\admin\Controller;
use think\Response;
use app\data\service\OtaService;
/**
 * 固件升级数据接口
 * @class Ota
 * @package app\api\controller\v1
 *
 */
class Ota extends Controller
{
    //查询未完成状态的设备升级作业
    public function get_new_version(){
        $otaObj = new OtaService();
        $data=[
            'DeviceName'=>'dev_3',
            'ProductKey'=>'a1IgvsxtKcy',
            'TaskStatus'=>'QUEUED'
        ];
        $res = $otaObj->listUnfinishedTask($data);
        $this->success('获取成功',$res);
    }

}
